package com.xgst.land.activity.check

import android.widget.CheckBox
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xgst.land.R
import com.xgst.land.bean.ChangeInventoryListBean

class ChangePDAdapter:BaseQuickAdapter<ChangeInventoryListBean,BaseViewHolder>(R.layout.item_build_layout) {
    override fun convert(holder: BaseViewHolder, item: ChangeInventoryListBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvBoxName,item.name)
        holder.setText(R.id.tvType,item.sampleCategory)
        val cbAll = holder.getView<CheckBox>(R.id.cbAll)
        cbAll.isChecked = item.isChecked
    }

}
